package com.gz.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gz.seckill.pojo.Order;
import com.gz.seckill.pojo.User;
import com.gz.seckill.vo.GoodsVo;

public interface OrderService extends IService<Order> {

    //方法:秒杀
    Order seckill(User user, GoodsVo goodsVo);

    //创建/生成秒杀路径(唯一的)
    String createPath(User user,Long goodsId);

    //检查路径,对秒杀路径进行校验
    boolean checkPath(User user,Long goodsId,String path);

    //验证用户输入的验证码是否正确
    boolean checkCaptcha(User user,Long goodsId,String captcha);

}
